package com.xyht.sca_s.student_manage_system.modules.clockIn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 考勤班次设置
 * </p>
 *
 * @author XYHT
 * @since 2023-08-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_clock_in_classes_setting")
@ApiModel(value="SmsClockInClassesSetting对象", description="考勤班次设置")
public class SmsClockInClassesSetting implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "考勤组id")
    private String clockInGroupId;

    @ApiModelProperty(value = "班次名称")
    private String classesName;

    @ApiModelProperty(value = "工作日(0-6代表周日到周六)")
    private Integer weekday;

    @ApiModelProperty(value = "上班时间")
    private Date startHours;

    @ApiModelProperty(value = "迟到时间限制(默认为0分钟)")
    private Integer lateTimeLimit;

    @ApiModelProperty(value = "缺卡时间限制(默认为30分钟)")
    private Integer startLackTimeLimit;

    @ApiModelProperty(value = "提前时间限制(默认为30分钟)")
    private Integer advanceTimeLimit;

    @ApiModelProperty(value = "下班时间")
    private Date endHours;

    @ApiModelProperty(value = "早退时间限制(默认为0分钟)")
    private Integer leaveEarlyTimeLimit;

    @ApiModelProperty(value = "缺卡时间限制(默认为30分钟)")
    private Integer endLackTimeLimit;

    @ApiModelProperty(value = "最晚下班限制(当前23:55-下班时间)")
    private Integer latestTimeLimit;

    @ApiModelProperty(value = "是否启用(默认true)")
    private Boolean isUse;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private Integer isDeleted;


}
